MailPoet\Segments\WooCommerce A

Total Complexity 53
Dependencies 13
Dependents 6
Total lines 447
Lines of code 352
Logical lines of code 158
Comment lines 39
Methods 17
Properties 7

Methods 17

Method Rating Maintainability Complexity Lines of code
synchronizeRegisteredCustomer()
A
44 14 44
synchronizeGuestCustomer()
A
48 10 33
insertSubscribersFromOrders()
S
55 4 20
removeOrphanedSubscribers()
S
43 1 65
needsCollationChange()
S
60 4 13
ensureColumnCollation()
S
60 3 14
updateStatus()
S
55 2 22
updateFirstNames()
S
58 2 18
updateLastNames()
S
58 2 18
removeUpdatedSubscribersWithInvalidEmail()
S
58 2 17
shouldShowWooCommerceSegment()
S
67 3 8
updateGlobalStatus()
S
55 1 27
synchronizeCustomers()
S
60 1 15
markRegisteredCustomers()
S
63 1 11
insertUsersToSegment()
S
65 1 10
unsubscribeUsersFromSegment()
S
65 1 10
__construct()
S
69 1 7